/*
 * CTDR_2DField.h
 *
 *  Created on: 6 déc. 2010
 *      Author: mbenoit
 */

#ifndef CTDR_2DFIELD_H_
#define CTDR_2DFIELD_H_

#include "CTDR_Field.h"
#include "TGraph2D.h"
#include "TString.h"

class CTDR_2DField: public CTDR_Field {
public:
	CTDR_2DField(double Lx,double Ly, double Lz,TString fEx, TString fEy,TString save);
	CTDR_2DField(double Lx,double Ly, double Lz,TString save);
	double Mod(double x, double L);
	int GetLength(TString file);
	void SetChamp(double x, double y , double z);
	virtual ~CTDR_2DField();

	private :
		TGraph2D *gEx;
		TGraph2D *gEy;
		TH2D *hEx;
		TH2D *hEy;

};

#endif /* CTDR_2DFIELD_H_ */
